import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";


/** 工坐台查询客户信息 */
export const callCallBack_customerDetail = (data?: object) => {
  return http.request<any>("get", baseUrlApi(`callCallBack/customerDetail?id=${data.id}`));
};
/** 客户单个导入 */
export const customer_import_one = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customer/customer_import_one"), { data });
};

/** 客户excel导入 */
export const customer_import_all = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customer/customer_import_all"), { data });
};

/** 客户列表 */
export const customer_list = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerData/listByType"), { data });
};

/** 客户详情 */
export const customer_detail = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerData/detail"), { data });
};

/** 客户标签 */
export const customer_tags = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerData/tags"), { data });
};

/** 跟进记录 */
export const customer_followLogs = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerData/followLogs"), { data });
};

/** 成交记录 */
export const customer_dealLogs = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerData/dealLogs"), { data });
};

/** 进入公海原因 */
export const customer_seaReasons = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerData/seaReasons"), { data });
};

/** 查询导入进度 */
export const customer_schedule = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customer/customer_schedule"), { data });
};

/** 客户废弃 */
export const customer_abandoned = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customer/customer_abandoned"), { data });
};

/** 客户废弃-批量 */
export const customer_abandoned_batch = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customer/customer_abandoned_batch"), { data });
};

/** 客户表修改 */
export const customer_save = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customer/customer_save"), { data });
};

/** 客户表删除 */
export const customer_del = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customer/customer_del"), { data });
};

/** 业务员端搜索 */
export const customerSalesmanData = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerSalesmanData/listByType"), { data });
};

/** 业务员端搜索-成交客户 */
export const customerSalesmanData_mask = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerSalesmanData/customer_make"), { data });
};

/** 业务员录客户 */
export const customerSalesmanData_add = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerSalesmanData/customer_add"), { data });
};

/** 客户锁定 */
export const customer_lock = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customer/customer_lock"), { data });
};

/** 客户解锁 */
export const customer_unlock = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customer/customer_unlock"), { data });
};

/** 客户释放到公海（单个） */
export const customerRelease = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerRelease/release"), { data });
};

/** 客户释放到公海（批量） */
export const customerRelease_batch = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerRelease/release_batch"), { data });
};

/** 业务员客户新增标签 */
export const customerLabel_add = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerLabel/add"), { data });
};

/** 客户标签删除 */
export const customerLabel_del = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerLabel/del"), { data });
};

/** 客户跟进新增 */
export const customerFollow_add = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerFollow/add"), { data });
};

/** 客户跟进修改 */
export const customerFollow_save = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerFollow/save"), { data });
};

/** 客户跟进删除 */
export const customerFollow_del = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerFollow/del"), { data });
};

/** 业务员客户转移(单条) */
export const customer_transfer = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerSalesmanData/customer_transfer"), { data });
};

/** 业务员客户转移(多条) */
export const customer_transfer_batch = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerSalesmanData/customer_transfer_batch"), { data });
};

/** 业务员客户领取 */
export const customerReceive = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerReceive/receive"), { data });
};

/** 客户成交新增 */
export const customerTrade_add = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerTrade/add"), { data });
};

/** 客户成交修改 */
export const customerTrade_save = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerTrade/save"), { data });
};

/** 客户成交删除 */
export const customerTrade_del = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerTrade/del"), { data });
};

/** 队长端看业务员统计 */
export const customerLeaderData_performance_c = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerLeaderData/performance_c"), { data });
};

/** 队长端看业务员统计 */
export const customerLeaderData_performance_p = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerLeaderData/performance_p"), { data });
};

/** 队长端看客户信息 */
export const customerLeaderData_listByType = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerLeaderData/listByType"), { data });
};

/** 队长端客户统计 */
export const customerLeaderData_statistics = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerLeaderData/statistics"), { data });
};

/** 队长端员工业绩 */
export const customerLeaderData_performance = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerLeaderData/performance"), { data });
};

/** 队长端单条转移 */
export const customerLeaderData_transfer = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerLeaderData/transfer"), { data });
};

/** 队长端多条转移 */
export const customerLeaderData_transfer_batch = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerLeaderData/transfer_batch"), { data });
};

/** 队长端单条分配 */
export const customerLeaderData_distribute = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerLeaderData/distribute"), { data });
};

/** 队长端多条分配 */
export const customerLeaderData_distribute_batch = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customerLeaderData/distribute_batch"), { data });
};
/** 转至公海 */
export const customer_customer_insea = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customer/customer_insea"), { data });
};
/** 转至公海进度查询 */
export const customer_insea_progress = (data?: object) => {
  return http.request<any>("post", baseUrlApi("customer/customer_insea_schedule"), { data });
};

/** 写入通话记录 */
export const addCallLog = (data?: object) => {
  return http.request<any>("post", baseUrlApi("callOrder/addCallLog"), { data });
};
/** 更新意愿+跟进记录 */
export const updateCallLog = (data?: object) => {
  return http.request<any>("post", baseUrlApi("callOrder/updateCallLog"), { data });
};
export const upload = (data?: object) => {
  return http.request<any>("post", baseUrlApi("index/upload"), { data });
};
/** 通话记录 */
export const callLogList = (data?: object) => {
  return http.request<any>("post", baseUrlApi("callOrder/callLogList"), { data });
};
// APP点呼统计报表

/** 依据月份获取通话日历 */
export const calendarByMonth = (data?: object) => {
  return http.request<any>("post", baseUrlApi("SingleCallReport/calendarByMonth"), { data });
};
/** 获取当天整体APP点呼特征 */
export const wholeByDay = (data?: object) => {
  return http.request<any>("post", baseUrlApi("SingleCallReport/wholeByDay"), { data });
};
/** 获取当天APP点呼职员特征 */
export const staffsByDay = (data?: object) => {
  return http.request<any>("post", baseUrlApi("SingleCallReport/staffsByDay"), { data });
};
/** 获取当天APP点呼时段特征 */
export const periodsByDay = (data?: object) => {
  return http.request<any>("post", baseUrlApi("SingleCallReport/periodsByDay"), { data });
};